﻿<%@ Page Title="" Language="C#" ResponseEncoding="utf-8" MasterPageFile="~/Admin/QuanLy.master"
    AutoEventWireup="true" CodeFile="Quang_Cao.aspx.cs" Inherits="Admin_Quang_Cao" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label ID="thongbaotrantrung" runat="server" Text=""></asp:Label>
    <asp:Panel ID="panel" Visible="true" runat="server">
        <asp:GridView ID="gvDuLieu" runat="server" AutoGenerateColumns="False" CellPadding="4"
            ForeColor="#333333" GridLines="None" AllowPaging="True" Width="100%" AllowSorting="True"
            OnPageIndexChanging="gvDuLieu_PageIndexChanging" OnRowCancelingEdit="gvDuLieu_RowCancelingEdit"
            OnRowDeleting="gvDuLieu_RowDeleting" OnRowEditing="gvDuLieu_RowEditing" OnRowUpdating="gvDuLieu_RowUpdating"
            OnSorting="gvDuLieu_Sorting">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="maqc" HeaderText="ID"
                    ReadOnly="True" SortExpression="maqc">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="tencty" HeaderText="T&#202;N C&#212;NG TY"
                    SortExpression="tencty">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="tenkhqc" HeaderText="T&#202;N KHÁCH HÀNG"
                    SortExpression="tenkhqc">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="logocty" HeaderText="LOGO"
                    SortExpression="logocty">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="LIÊN KẾT" SortExpression="weblienket">
                    <EditItemTemplate>
                        <asp:TextBox ID="weblienket2" runat="server" Text='<%#Eval("weblienket") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="weblienket1" ReadOnly="true" runat="server" Text='<%#Eval("weblienket") %>'></asp:TextBox>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="emailkhqc" HeaderText="EMAIL KH"
                    SortExpression="emailkhqc">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField HeaderStyle-HorizontalAlign="left" DataField="dienthoaikhqc" HeaderText="ĐIỆN THOẠI KH"
                    SortExpression="dienthoaikhqc">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:CommandField ShowEditButton="True" CancelText="&lt;img border='0' src='images/nut/cancel.gif'&gt;"
                    DeleteText="X&#211;A" EditText="&lt;img border='0' src='images/nut/sua.jpg'&gt;"
                    InsertText="TH&#202;M" NewText="MỚI" SelectText="CHỌN" UpdateText="&lt;img border='0' src='images/nut/save.gif'&gt;" />
                <asp:CommandField ShowDeleteButton="True" CancelText="KH&#212;NG" DeleteText="&lt;img border='0' src='images/nut/xoa.jpg'&gt;"
                    EditText="SỬA" InsertText="TH&#202;M" NewText="MỚI" SelectText="CHỌN" UpdateText="LƯU" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
            <PagerSettings FirstPageText="ĐẦU TI&#202;N" LastPageText="CUỐI C&#217;NG" PageButtonCount="5" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <br />
        <hr color="#008000" size="1">
        <table width="50%">
            <tr>
                <td colspan="3">
                    <strong><span style="color: #ff0000">THÊM MỚI QUẢNG CÁO</span></strong>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                </td>
            </tr>
            <tr>
                <td width="40%">
                    <span style="color: #0000ff">TÊN CÔNG TY</span>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="tencongty" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="40%">
                    <span style="color: #0000ff">TÊN KHÁCH HÀNG</span>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="tenkhqc" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: #0000ff">HÌNH MINH HỌA</span>
                </td>
                <td colspan="2">
                    <asp:FileUpload ID="uploadanhads" Width="95%" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: #0000ff">LIÊN KẾT</span>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="lienket" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: #0000ff">EMAIL KHÁCH HÀNG</span>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="emailkh" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <span style="color: #0000ff">ĐIỆN THOẠI KHÁCH HÀNG</span>
                </td>
                <td colspan="2">
                    <asp:TextBox ID="dienthoaikh" runat="server" Width="95%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <asp:Button ID="luudanhmuc" runat="server" Text="LƯU QUẢNG CÁO" Height="30px" Width="50%"
                        OnClick="luudanhmuc_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
